//
//  YAYIMyAppointItem.m
//  yayi
//
//  Created by Veer on 16/3/23.
//  Copyright © 2016年 hxp. All rights reserved.
//

#import "YAYIMyAppointItem.h"
#import "NSDate+VR.h"

@implementation YAYIMyAppointItem


-(void)setValue:(id)value forUndefinedKey:(NSString *)key{
    
}

//- (void)setCreatetime:(NSInteger)createtime
//{
//    _createtime = createtime;
//    
//    NSDate *date = [NSDate dateWithTimeIntervalSince1970:createtime/1000];
//    
//    NSDateFormatter *dateFormatter = [[NSDateFormatter alloc] init];
//    //设定时间格式,这里可以设置成自己需要的格式
//    dateFormatter.timeZone = [NSTimeZone systemTimeZone];
//
//    if ([date isToday]) {
//        [dateFormatter setDateFormat:@"HH:mm"];
//        NSString *time = [dateFormatter stringFromDate:date];
//        
//        _createtimeStr = [NSString stringWithFormat:@"今天 %@", time];
//    }else{
//        [dateFormatter setDateFormat:@"yyyy-MM-dd"];
//        _createtimeStr = [dateFormatter stringFromDate:date];
//    }
//    
//}

@end
